import { reject } from "lodash";

export function showModal(title){
	return new Promise((resolve,reject)=>{
		uni.showModal({
			cancelText: "取消",
			confirmText: "确认",
			title:title ,
			success: (res) => {
			   resolve(res)	
			},
			fail:(fail)=>{
				reject(fail)
			}
		})
	})
}